import type { logins_Dto } from "@/Dto/Request/logins_Dto";
import type { Response_Dto } from "@/Dto/Response/Api_Result";
import request from '@/utils/request'



/**
 * 用户登录
 * @param obj 
 * @returns 
 */
export const logins=(obj:logins_Dto):Promise<Response_Dto>=>{
    return request({
        url:'api/login/Logins',
        method:'post',
        data:obj
    })
}
/**
 * 检查用户是否登录
 */
export const check_login = (): Promise<Response_Dto> => {
    return request({
        url: 'api/login/check_login',
        method: "get"
    });
}